package org.duiduo.common.bean.res;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 分页公共返回对象
 *
 * @author liangze
 * @date 2021/11/12 14:04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "分页公共对象返回")
public class RespPageBean {

    /**
     * 总条数
     */
    @Schema(description = "总条数")
    private Long total;

    /**
     * 数据list
     */
    @Schema(description = "数据集合")
    private List<?> data;

}
